<template>
  <div class="toast_box">
    <i  class="iconfont"
    :class="$store.state.toastType==='success'?'icon-toast_chenggong':$store.state.toastType==='info'?'icon-toast-jinggao':'icon-toast-shibai_huaban'"
    ></i>
    <span>{{$store.state.toastMsg}}</span>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="less" scoped>
.toast_box{
  background: #fff;
  position: fixed;
  display: flex;
  justify-content: center;
  // top: 0;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  border-radius: 5px;
  span{
    margin: 5px;
  }
  i{
    margin: 5px;
  }
  .icon-toast-shibai_huaban{
    color: red;
  }
}
</style>